<?php

class ZFWork_Form_Element_Button_Goto extends ZFWork_Form_Element_Button {

	public function __construct($spec, $url, $options = null) {
		parent::__construct($spec, $options);

		$this->setAttrib('onclick', "window.location='$url'");
	}

}